import { FileChatMessageHistory } from "./FileChatMessageHistory.js";
import { HumanMessage, AIMessage } from "@langchain/core/messages";

const history = new FileChatMessageHistory("./cache/chat.json");

// await history.addMessages([
//   new HumanMessage("你好"),
//   new AIMessage("你好，我有什么能够帮助你的"),
// ]);

// const msg = await history.getMessages();
// console.log(msg);

await history.clear();
